package com.yupi.springbootinit.provider;

import java.util.concurrent.CompletableFuture;

/**
 * @author 25169
 */
public interface DemoService {
    String sayHello(String name);

    String sayHello2(String name);

    default CompletableFuture<String> sayHelloAsync(String name) {
        return CompletableFuture.completedFuture(sayHello(name));
    }

}
